package com.foruo.learn.designmode.visitor;

public class TestMe {

    public static void main(String[] args){

        Shop shop = new Shop();
        shop.add(new Clothes("限量版风衣",200, "black"));
        shop.add(new Clothes("披风",50, "red"));
        shop.add(new Clothes("衬衫",70, "blue"));

        shop.add(new Trousers("牛仔裤", 150, 18));
        shop.add(new Trousers("喇叭裤", 80, 24));
        shop.add(new Trousers("超短裤", 60, 5));

        // 询问男人
        shop.askAnswer(new ManVisitor());
        // 询问女人
        shop.askAnswer(new WomanVisitor());

    }

}
